import request from '@/utils/request'

/**
 * 工艺流程分页查询
 * @param {查询条件} data
 */
export function listLmRoute(query) {
	return request({
		url: 'craft/lmRoute/list',
		method: 'get',
		params: query,
	})
}

/**
 * 新增工艺流程
 * @param data
 */
export function addLmRoute(data) {
	return request({
		url: 'craft/lmRoute',
		method: 'post',
		data: data,
	})
}
/**
 * 修改工艺流程
 * @param data
 */
export function updateLmRoute(data) {
	return request({
		url: 'craft/lmRoute',
		method: 'PUT',
		data: data,
	})
}
/**
 * 获取工艺流程详情
 * @param {Id}
 */
export function getLmRoute(id) {
	return request({
		url: 'craft/lmRoute/' + id,
		method: 'get'
	})
}

/**
 * 删除工艺流程
 * @param {主键} pid
 */
export function delLmRoute(pid) {
	return request({
		url: 'craft/lmRoute/delete/' + pid,
		method: 'POST'
	})
}
